package com.blb.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "系统管理返回响应数据")
@Component
public class SysUserDto<T> {
    @ApiModelProperty(value = "状态码，200为正常，201为失败", notes = "状态码，200为正常，201为失败")
    private int code;//200 成功  201 失败
    @ApiModelProperty(value = "详细信息", notes = "用于查看详细信息")
    private String msg;//详情
    @ApiModelProperty(value = "数据", notes = "用于查看数据")
    private T t; //数据
    @ApiModelProperty(value = "token", notes = "用于查看token")
    private String token;
}
